package com.xucy.springboot.designmodel.structural.Proxy.StaticProxy;

/**
 * @Author xucy
 * @Date 2019-07-27 17:34
 * @Description 静态代理
 *   场景，对插入操作进行事务提交
 *
 **/

public class Test {
    public static void main(String[] args) {


        //创建目标对象，传入代理类
        TargetService targetService=new TargetServiceImpl();

        TargetService proxy=new Proxy(targetService);

        proxy.insert();
    }
}
